﻿using UnityEngine;
using System.Collections;

public class Find_distance : MonoBehaviour {

	public string enemy_tag_1;
	public string enemy_tag_2;

	public Hate hate;

	void OnTriggerEnter(Collider collider)
	{
		if (collider.gameObject.tag == enemy_tag_1 || collider.gameObject.tag == enemy_tag_2) 
		{
			//transform.parent.gameObject.GetComponent<Hate>().add_hate(collider.gameObject,1);
			hate.add_hate(collider.gameObject,1);
		}
	}
	// Use this for initialization
	void Start ()
	{
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}
}
